/* 隐藏工具栏 */
.vditor-toolbar--hide {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.vditor-content {
  padding-top: 0 !important;
}

/* 修改 vditor-reset 的内边距和样式 */
.vditor-reset {
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  color: rgba(0, 0, 0, 0.85) !important;
}

/* 移除 ir 模式的内边距并调整样式 */
.vditor-ir {
  padding: 8px 12px !important;
  line-height: 1.5715 !important;
}

/* 调整预览区域的内边距 */
.vditor-preview {
  padding: 0 !important;
}

/* 全局 vditor 容器样式，模拟 antd Input.TextArea */
.vditor {
  border: 1px solid #d9d9d9 !important;
  border-radius: 2px !important;
  transition: all 0.3s !important;
  background-color: #fff !important;
  border-radius: 4px !important;
}

/* 编辑器鼠标悬停和焦点样式 */
.vditor:hover {
  border-color: #4551e5 !important;
  border-right-width: 1px !important;
}

.vditor:focus-within {
  border-color: #4551e5 !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2) !important;
  border-right-width: 1px !important;
  outline: 0 !important;
}

/* 覆盖代码块样式 */
.vditor-reset pre {
  background-color: #f6f8fa !important;
  border-radius: 3px !important;
}

/* 调整链接样式 */
.vditor-reset a {
  color: #1890ff !important;
  text-decoration: none !important;
}

.vditor-reset a:hover {
  color: #4551e5 !important;
  text-decoration: underline !important;
}

/* 覆盖引用块样式 */
.vditor-reset blockquote {
  border-left: 4px solid #eee !important;
  padding-left: 12px !important;
  color: rgba(0, 0, 0, 0.45) !important;
}

/* 调整列表间距 */
.vditor-reset ul,
.vditor-reset ol {
  padding-left: 20px !important;
}

/* 覆盖表格样式 */
.vditor-reset table {
  border-collapse: collapse !important;
}

.vditor-reset table th,
.vditor-reset table td {
  border: 1px solid #d9d9d9 !important;
  padding: 8px !important;
}

.vditor-reset table th {
  background-color: #fafafa !important;
  font-weight: 500 !important;
}
